package com.xyzh05.dao.hibernate;

import java.util.List;

import com.xyzh05.model.Service;
import com.xyzh05.dao.ServiceDao;
import com.xyzh05.dao.hibernate.GenericDaoHibernate;
import org.springframework.stereotype.Repository;

@Repository("serviceDao")
public class ServiceDaoHibernate extends GenericDaoHibernate<Service, Long> implements ServiceDao {

    public ServiceDaoHibernate() {
        super(Service.class);
    }

	public List<Service> getByEditor() {
		return this.getHibernateTemplate().find(" from Service s where s.id in (6, 7, 14, 15) ");
	}
}
